﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.IO.IsolatedStorage;

namespace MyDeeWeibo
{
    public class WeiboSettings
    {
        private Setting<bool> sBool = new Setting<bool>("sBool", false);

        public bool boolSaved
        {
            get
            {
                return sBool.Value;
            }
            set
            {
                sBool.Value = value;
            }
        }

        private Setting<string> username = new Setting<string>("username", "oliverpp@126.com");
        private Setting<string> password = new Setting<string>("password", "liwendi927");
        public Setting<string> backgroundColorSaved = new Setting<string>("backgroundColorSaved", "#FF06CCFF");

        public string usernameSaved
        {
            get
            {
                return username.Value;
            }
            set
            {
                username.Value = value;
            }
        }

        public string passwordSaved
        {
            get
            {
                return password.Value;
            }
            set
            {
                password.Value = value;
            }
        }

        public string colorSaved
        {
            get
            {
                return backgroundColorSaved.Value;
            }
            set
            {
                backgroundColorSaved.Value = value;
            }
        }
    }
}
